]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspace: End zooming when starting a window drag
authorJasper St. Pierre <jstpierre@mecheye.net>
Wed, 11 May 2011 21:43:25 +0000 (17:43 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 12 May 2011 15:04:37 +0000 (11:04 -0400)
The mouse-wheel zooming "easter egg" breaks horribly when you
drag a window, due to ugly lightbox reparenting tricks it uses.

For now, just end any zoom before we drag the window around.

https://bugzilla.gnome.org/show_bug.cgi?id=649632

js/ui/workspace.js

index c06720db26af6dd21c2265b415f3878dc05ccbc0..bcffa5c55fb6e096dfb846cce8668d8e41433ef5 100644 (file)
@@ -296,6 +296,9 @@ WindowClone.prototype = {
     },
 
     _onDragBegin : function (draggable, time) {
+        if (this._zooming)
+            this._zoomEnd();
+
         [this.dragOrigX, this.dragOrigY] = this.actor.get_position();
         this.dragOrigScale = this.actor.scale_x;
         this.inDrag = true;